from core import main


class C:
    def __init__(self):
        self.test = None
        ...

    def Init(self):
        self.test = ""


i = 0


@main.add_callable("test")
def func():
    global i
    i += 1
    print(i)
    if i > 100:
        main.remove_callable("test")
